//
//  NSString+DHString.h
//  新浪微博OC
//
//  Created by DIANGHONG on 2018/4/4.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CommonCrypto/CommonDigest.h>
@interface NSString (DHString)
/**
 拼接NSDocumentDirectory路径
 
 @return NSString（拼接好的路径）
 */
- (NSString *)dh_appendDocumentDir;

- (NSString *)dh_hrefUrlWithUrlString:(NSString **)urlString;
- (NSString *)base64EncodedString;
- (NSString *)base64DecodedString;
#pragma mark - 将某个时间戳转化成 时间
+(NSString *)timestampSwitchTime:(NSInteger)timestamp andFormatter:(NSString *)format;
/**
 urlString下载image

 @param completion 完成回调
 */
- (void)dh_stringTodownloaderImageWithCompletion:(void(^)(UIImage *image))completion;
- (BOOL)phoneNumberIsTrue;

// 时间转换星期
+ (NSString*)getWeekDay:(NSString*)currentStr;

//返回16位大小写字母和数字
+(NSString *)return16LetterAndNumber;

//获取当前时间戳
- (NSString *)currentTimeStr;

- (NSString *)md5;

// 字符串时间—>时间戳
+ (NSString *)cTimestampFromString:(NSString *)theTime;
+ (NSString *)getNowTime;

@end
